import request from "@/util/http";

export default {
  login(date) {
    return request({
      method: "get",
      params: {
        _gp: "admin",
        _mt: "login",
        username: date.name,
        password: date.pwd,
        verifyCode: date.code
      }
    });
  },
  info() {
    return request({
      method: "get",
      params: {
        _gp: "admin",
        _mt: "info"
      }
    });
  }
};
